package com.shierke.Ume.ui.activity.me

import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.shierke.Ume.R
import com.shierke.Ume.base.BaseActivity
import com.shierke.Ume.ui.fragment.me.MyVistorsAdapter
import com.shierke.Ume.util.click
import com.shierke.Ume.util.startActivity
import kotlinx.android.synthetic.main.activity_my_vistors.*

/**
 * Create by Ybx
 * on 2020-10-13
 * Desribe:
 */
class MyVistorsActivity : BaseActivity() {


    companion object {

        fun startActivity(context: Context) {
            context.startActivity<MyVistorsActivity>()
        }

    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_my_vistors)

        setActivityTitleText(getString(R.string.fragment_me_visitor))
        val myVistorsAdapter = MyVistorsAdapter()
        recycle.layoutManager = LinearLayoutManager(this) as RecyclerView.LayoutManager?
        recycle.adapter = myVistorsAdapter

        unlock.click {
            DeblockingVistorsDialogActivity.startActivity(this)
        }

    }


}